package com.sz.biz.trade.goods.service;

import com.sz.biz.trade.goods.entity.GoodsPurchaseRel;

import java.util.List;

/**
 * Function: 商品服务 <br>
 * Author: jifeixing <br>
 * Date: 2017-07-12 14:09:00
 */

public interface GoodsPurchaseRelService {

    /**
     * 添加采购限制
     * @param goodsPurchaseRel
     * @return
     */
    void save(GoodsPurchaseRel goodsPurchaseRel);

    /**
     * 获取采购企业ids
     * @param goodsId
     * @return
     */
    List<String> findPurchaseCustomerIdsByGoodsId(Integer goodsId);

    /**
     * 根据商品id删除
     * @param goodsId
     */
    void deleteByGoodsId(Integer goodsId);
}
